﻿<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-access="property" default-lazy="true" namespace="Cms.Domain" assembly="Cms.Domain">
  <class name="DetailTemplateContentSet" table="cmsDetailTemplateContentSet">
    <cache usage="read-write" />
    <id name="ID" type="System.Int32" unsaved-value="0">
      <column name="ID" />
      <generator class="identity" />
    </id>
    <bag name="TranslationVersions" table="cmsDetailTemplateContentSetTranslationVersion" mutable="true">
      <cache usage="read-write" />
      <key>
        <column name="ContentSetID" />
      </key>
      <many-to-many class="ContentTranslationVersion">
        <column name="TranslationVersionID" />
      </many-to-many>
    </bag>
    <many-to-one class="Locale" name="Locale">
      <column name="LocaleID" not-null="true" />
    </many-to-one>
    <many-to-one class="ContentTranslationVersion" name="PublishedVersion">
      <column name="PublishedVersionID" />
    </many-to-one>
    <many-to-one class="DetailTemplate" name="DetailTemplate">
      <column name="DetailTemplateID" not-null="true" />
    </many-to-one>
  </class>
</hibernate-mapping>